# bucket中维系的是两个列表，一个是特征的列表，另一个是索引的列表

class Bucket:
    features = []
    name = []

    def __init__(self):
        self.features = []
        self.name = []

    def addFeature(self, feature, nameID):
        self.features.append(feature)
        self.name.append(nameID)

    def size(self):
        return len(self.features)
